/**
 * @计算1到10的平方,1到10的积
 *
 * @author	 wangshikun <wangshikun2010@gmail.com>
 * @copyright	(c) 2012 wangshikun <wangshikun2010@gmail.com>
 * @license	http://www.opensource.org/licenses/mit-license.php The MIT License
 * @package	default
 * @subpackage	default
 */

#include <stdio.h>
#include <cs50.h>
#include <stdlib.h>

int main(int argc, char *argv[]) {
	int s = 1, sum = 1;

	for (int i=1; i<=10; i++) {
		s *= i;
		sum = i * i;
		printf("1到%i的积是%i\n", i, s);
		printf("%i的平方是%i\n", i, sum);
	}
}
